"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.顽石 = void 0;
const Config_1 = require("../../Config");
const Utils_1 = __importDefault(require("../Utils"));
const EvolutionBase_1 = require("./EvolutionBase");
class 顽石 extends EvolutionBase_1.EvolutionBase {
    constructor() {
        super(...arguments);
        this.broken_countdown = 0;
    }
    intervalUpdate() {
        this.broken_countdown++;
        this.big.gameMgr.sendBroadcast(Utils_1.default.getObj("顽石_倒计时", { "player_username": this.big.player.username, "id": this.big.id, "progress": this.broken_countdown }, true, false), false);
        if (this.broken_countdown > Config_1.Config.FULL_BROKEN) {
            this.big.die();
        }
    }
}
exports.顽石 = 顽石;
